package org.jeecg.modules.flower.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Description: 出库单仓库子表
 * @Author: jeecg-boot
 * @Date:   2022-07-15
 * @Version: V1.0
 */
@Data
@TableName("t_flower_outorderinfo_d")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="t_flower_outorderinfo_d对象", description="出库单仓库子表")
public class FlowerOutorderinfoD implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**主表id*/
	@Excel(name = "主表id", width = 15)
    @ApiModelProperty(value = "主表id")
    private String mainid;
    /**来源基地*/
    @Excel(name = "来源基地", width = 15,dictTable = "t_flower_planting_base",dicText = "name",dicCode = "id")
    @ApiModelProperty(value = "来源基地")
    @Dict( dictTable = "t_flower_planting_base",dicText = "name",dicCode = "id")
    private String sourceBase;
    /**来源大棚*/
    @Excel(name = "来源大棚", width = 15,dictTable = "t_flower_planting_greenhouse",dicText = "name",dicCode = "id")
    @ApiModelProperty(value = "来源大棚")
    @Dict( dictTable = "t_flower_planting_greenhouse",dicText = "name",dicCode = "id")
    private String sourceGreenhouse;

	/**仓库编码*/
	@Excel(name = "仓库编码", width = 15)
    @ApiModelProperty(value = "仓库编码")
    private String storehouse;

    @ApiModelProperty(value = "库存")
    private String storehouseName;
	/**数量*/
	@Excel(name = "数量", width = 15)
    @ApiModelProperty(value = "数量")
    private BigDecimal number;

	/**单价*/
	@Excel(name = "单价", width = 15)
    @ApiModelProperty(value = "单价")
    private BigDecimal price;

	/**总价*/
	@Excel(name = "总价", width = 15)
    @ApiModelProperty(value = "总价")
    private BigDecimal totalprice;
}
